package cn.tedu.bonfire.front.content.service.impl;

import cn.tedu.bonfire.common.pojo.po.ArticleSearchPO;
import cn.tedu.bonfire.common.pojo.vo.PageData;
import cn.tedu.bonfire.front.content.dao.search.IArticleSearchRepository;
import cn.tedu.bonfire.front.content.service.IArticleSearchService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ArticleSearchServiceImpl implements IArticleSearchService {
    @Autowired
    private IArticleSearchRepository articleSearchRepository;

    @Override
    public PageData<ArticleSearchPO> search(String keyword, Integer pageNum) {
        return articleSearchRepository.search(keyword, pageNum, 20);
    }
}
